<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">


    <body>
        <div class="post">

            <h2 class="title">Cadastro de Sitação</h2>

            <h:panelGroup id="painelMensagens" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>

            <div id="stylized" class="myform">

                <h:form>
                    <h:panelGrid columns="2">

                    <h:outputLabel> Nome: <span class="small">Aluno Cadastrado</span></h:outputLabel>
                    <h:outputText  value="#{SituacaoDoDiplomaController.situacaoDoDiploma.diploma.aluno}"/>

                    <h:outputLabel>Data: <span class="small">Formato dd/mm/aaaa</span></h:outputLabel>
                    <p:calendar value="#{SituacaoDoDiplomaController.situacaoDoDiploma.dia}" title="Insira a Data" pattern="dd/MM/yyyy" />

                    <h:outputLabel>Nova Situação do Diploma<span class="small">Selecione uma opção</span></h:outputLabel>
                    <h:selectOneMenu value="#{SituacaoDoDiplomaController.situacaoDoDiploma.situacaoDiploma}">
                        <f:selectItems value="#{SituacaoDoDiplomaController.situacoes}" var="sd" itemLabel="#{sd.situacao}"/>
                    </h:selectOneMenu>

                    <h:outputLabel>Descrição: <span class="small">Email Válido do Contato</span></h:outputLabel>
                    <h:inputTextarea  value="#{SituacaoDoDiplomaController.situacaoDoDiploma.descricao}" required="true" requiredMessage="Descrição Requerida." cols="30" rows="3" />
                    
                    <h:outputLabel> Avisar por E-mail?: <span class="small">Email para #{SituacaoDoDiplomaController.situacaoDoDiploma.diploma.email}</span></h:outputLabel>
                    <h:selectBooleanCheckbox value="#{SituacaoDoDiplomaController.mandarEmail}"  />

                    


                    </h:panelGrid>

                    <h:commandButton styleClass="button" action="#{SituacaoDoDiplomaController.create}" value="Salvar" />
                    <h:commandButton styleClass="button" type="reset" value="Limpar" />




                </h:form>
            </div>
        </div>




    </body>
</html>
